<template>
  <div>
    <Topic :topicList="list"></Topic>
  </div>
</template>

<script>
import Topic from "@/components/Topic/Topic.vue";
import { TopicList } from "@/request/api";

export default {
  components: {
    Topic
  },
    created() {
    TopicList().then(res => {
      //判断是否被拦截
      if (res.errno == "0") {
        this.list = res.data.data;
      }
    });
  },
  data() {
    return {
      list:[]
    };
  }
};
</script>

<style>
</style>